<?php
/////////////////////////////////////////////////////////////////////////////
// 
//
// workflow_system 
//
// workflow_copyright
// 
/////////////////////////////////////////////////////////////////////////////

/**
 * FILE_NAME : agreement.class.php   FILE_PATH : E:\www\\trunk\classes\application\agreement.class.php
 * ....网站协议操作类
 *
 * @copyright workflow_system 
 * @author workflow Develop Team 
 * @package 
 * @subpackage 
 * @version Mon Jun 23 21:22:22 CST 2008
 */
defined('Base_Use_Sign') or die("this is invalid system!please contact <a href='http://www.shopnc.net'>www.shopnc.net</>.");

class AgreementClass extends FrameWork {
	/**
	 * 获取html页面协议内容
	 *
	 * @return var
	 */
	function getAgreementContent(){
		$filename = BasePath.'/html/agreement.html';
		if(is_file($filename)){
			$fd=@fopen($filename,'rb');
			$cts=@fread($fd,filesize($filename));
			return $cts;
		} else{
			return false;
		}
	}
	/**
	 * 获取html页面协议内容
	 *
	 * @return var
	 */
	function getShopAgreementContent(){
		$filename = BasePath.'/html/shop_agreement.html';
		if(is_file($filename)){
			$fd=@fopen($filename,'rb');
			$cts=@fread($fd,filesize($filename));
			return $cts;
		} else{
			return false;
		}
	}
	/**
	 * 获取表单提交的内容
	 *
	 * @param  var[] $input_param
	 * @return boolen
	 */
	function getAgreementContentForm($input_param){
		$content=Common::replacebr($input_param['content']);
		return $content;
	}
}
?>